# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libfontenc
pkgver=1.1.7
pkgrel=4
pkgdesc="X11 font encoding library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
options="!check"  # No test suite.
makedepends="util-macros xorgproto zlib-dev"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/libfontenc-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--with-encodingsdir=/usr/share/fonts/encodings
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fd8578a81090fa938dd75ad9081ab62c6c54fa2535d1c6291afd799ac8dc7c344a43f07cea5cd4433af16df0d926c22e7c169877bc8b13d92584e7dec173d701  libfontenc-1.1.7.tar.xz
"
